#include "correctAdd.h"

void correctAdd(double* a, double* b, double* c)
{
	LARGE_INTEGER freq;
	LARGE_INTEGER sQP, fQP;

	QueryPerformanceFrequency(&freq);
	QueryPerformanceCounter(&sQP);

	for (int i=0; i<NUM; i++)
	{
		c[i] = sqrt(exp(sin(cos(exp(sin(a[i]) * cos(b[i]))))) * exp(sin(cos(exp(sin(a[i]) * cos(b[i]))))));
	}

	QueryPerformanceCounter(&fQP);

	printf("cons: %lf \n\n",(fQP.QuadPart-sQP.QuadPart)/(double)freq.QuadPart);
}